﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BoardList.aspx.cs" Inherits="Admin_BoardList" %>

<%@ Register Src="~/Contents/Admin.ascx" TagName="Admin" TagPrefix="contents" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>게시판 관리 리스트페이지</title>
    <script src="../common/common.js" type="text/javascript"></script>
    <link href="../common/common.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body, td, th
        {
            font-size: 12px;
            color: #000000;
            font-family: 굴림체;
        }
        
        body
        {
            background-color: #7e7a6f;
        }
        
        .align
        {
            width: 100%;
            text-align: center;
        }
        
        .subAlign
        {
            padding-top: 5px;
            margin: 0 auto; /* 중간에 두기 위한 값 */
            width: 740px;
            text-align: right;
            height: 26px;
        }
        
        #gvItemList
        {
            margin: 0 auto; /* 중간에 두기 위한 값 */
            text-align: left;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <contents:Admin ID="Admin" runat="server" />
    </div>
    <div>
        <div class="align">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="serial_no"
                DataSourceID="SqlDataSource1" BackColor="White" BorderColor="#999999" BorderStyle="None"
                BorderWidth="1px" CellPadding="3" GridLines="Vertical">
                <AlternatingRowStyle BackColor="#DCDCDC" />
                <Columns>
                    <asp:BoundField DataField="serial_no" HeaderText="번호" InsertVisible="False" ReadOnly="True"
                        SortExpression="serial_no" />
                    <asp:BoundField DataField="writer" HeaderText="작성자" SortExpression="writer" />
                    <asp:BoundField DataField="title" HeaderText="제목" SortExpression="title" />
                    <asp:BoundField DataField="reg_date" HeaderText="작성" SortExpression="reg_date" />
                </Columns>
                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                <SortedAscendingHeaderStyle BackColor="#0000A9" />
                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                <SortedDescendingHeaderStyle BackColor="#000065" />
            </asp:GridView>
        </div>
        <div class="subAlign">
            <asp:ImageButton ID="btnWrite" runat="server" ImageUrl="../image/icon/write.jpg"
                OnClientClick="fn_NewItemRegisteration();return false;" OnClick="btnWrite_Click" />
            <asp:ImageButton ID="btnDelete" runat="server" ImageUrl="../image/icon/delete.jpg"
                OnClientClick="fn_NewItemRegisteration();return false;" OnClick="btnDelete_Click" />
        </div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:thiagoms %>"
            SelectCommand="SELECT [serial_no], [writer], [title], [reg_date] FROM [TB_Board] ORDER BY [serial_no] DESC">
        </asp:SqlDataSource>
    </div>
    </form>
</body>
</html>
